//配置路由,定义Map类型的routes,Key为String类型，Value为Function类型
import 'package:flutter/cupertino.dart';
import 'package:get/get_navigation/src/routes/get_route.dart';
import 'package:xin_nuo_pda/equipment/equipment_ask_repair/EquipmentAskRepairPage.dart';
import 'package:xin_nuo_pda/equipment/equipment_repair/AddPartsPage.dart';
import 'package:xin_nuo_pda/equipment/equipment_repair/EquipmentRepairDetailsPage.dart';
import 'package:xin_nuo_pda/equipment/equipment_repair/EquipmentRepairListPage.dart';
import 'package:xin_nuo_pda/equipment/pe_confirm/PeConfirmPage.dart';
import 'package:xin_nuo_pda/equipment/qa_confirm/QaConfirmPage.dart';
import 'package:xin_nuo_pda/home/index/IndexPage.dart';
import 'package:xin_nuo_pda/login/LoginPage.dart';
import 'package:xin_nuo_pda/product/add_material/AddMaterialInfoPage.dart';
import 'package:xin_nuo_pda/product/add_material/AddMaterialPage.dart';
import 'package:xin_nuo_pda/product/bind_part/BindPartPage.dart';
import 'package:xin_nuo_pda/product/data_upload/DataUploadPage.dart';
import 'package:xin_nuo_pda/product/defect_clear_thing/DefectClearThingPage.dart';
import 'package:xin_nuo_pda/product/end_work/EndWorkPage.dart';
import 'package:xin_nuo_pda/product/end_work/EndWorkNextOnePage.dart';
import 'package:xin_nuo_pda/product/get_lib/ProductIntoLibPage.dart';
import 'package:xin_nuo_pda/product/pass_end_work/PassEndWorkNextOnePage.dart';
import 'package:xin_nuo_pda/product/pass_end_work/PassEndWorkPage.dart';
import 'package:xin_nuo_pda/product/start_work/StartWorkPage.dart';
import 'package:xin_nuo_pda/product/start_work/StartWorkNextOnePage.dart';
import 'package:xin_nuo_pda/product/test_start_work/TestLotStartWorkPage.dart';
import 'package:xin_nuo_pda/qc/PQCFunctionPage.dart';
import 'package:xin_nuo_pda/qc/QcTrackInPage.dart';
import 'package:xin_nuo_pda/qc/QcTrackOutPage.dart';
import 'package:xin_nuo_pda/setting/SettingsPage.dart';
import 'package:xin_nuo_pda/tab/CategoryPage.dart';
import 'package:xin_nuo_pda/tab/HomePage.dart';
import 'package:xin_nuo_pda/tab/MinePage.dart';
import 'package:xin_nuo_pda/tab/OtherPage.dart';
import 'package:xin_nuo_pda/tab/Search.dart';
import 'package:xin_nuo_pda/tab/TabsPage.dart';

import '../product/end_work/EndWorkNextOneDefectPage.dart';
import '../product/end_work/EndWorkNextOneNorMalPage.dart';
import '../product/end_work/EndWorkNextTwoPage.dart';
import '../product/get_lib/HalfProductIntoLibPage.dart';
import '../product/start_work/StartWorkNextDBPage.dart';

abstract class Routes {
  static const Tabs = '/tabs';
  static const Home = '/home';
  static const Category = '/category';
  static const Other = '/other';
  static const Mine = '/mine';
  static const Search = '/search';
  static const Login = '/login';
  static const Settings = '/settings';
  static const Index = '/index';
  static const StartWork = '/startWork';
  static const StartWorkNextOne = '/startWorkNextOne';
  static const StartWorkNextDB = '/startWorkNextDB';
  static const EndWork = '/endWork';
  static const EndWorkNextOne = '/endWorkNextOne';
  static const EndWorkNextOneNormal = '/endWorkNextOneNormal';
  static const EndWorkNextTwo = '/endWorkNextTwo';
  static const EndWorkNextOneDefect = '/endWorkNextOneDefect';
  static const TestLotStartWork = '/testLotStartWork';
  static const DataUpload = '/dataUpload';
  static const PassEndWork = '/passEndWork';
  static const PassEndWorkNextOne = '/passEndWorkNextOne';
  static const DefectClearThing = '/defectClearThing';
  static const EquipmentRepairList = '/equipmentRepairList';
  static const EquipmentRepairDetails = '/equipmentRepairDetails';
  static const AddParts = '/addParts';
  static const AddMaterial = '/addMaterial';
  static const EquipmentRepair = '/equipmentRepair';
  static const AddMaterialInfo = '/addMaterialInfo';
  static const QcTrackIn = '/qcTrackIn';
  static const QcTrackOut = '/qcTrackOut';
  static const EquipmentAskRepair = '/equipmentAskRepair';
  static const PeConfirm = '/peConfirm';
  static const QaConfirm = '/qaConfirm';
  static const PQCFunction = '/pqcFunction';
  static const BindPart = '/bindPart';
  static const ProductLib = '/ProductLib';
  static const HalfProductLib = '/HalfProductLib';



  static final getPages = [
    GetPage(name:Routes.Tabs, page: () => TabsPage()),
    GetPage(name: Routes.Home, page: () => HomePage()),
    GetPage(name: Routes.Category, page: () => CategoryPage()),
    GetPage(name: Routes.Other, page: () => OtherPage()),
    GetPage(name: Routes.Mine, page: () => MinePage()),
    GetPage(name: Routes.Search, page: () => SearchPage()),
    GetPage(name: Routes.Login, page: () => LoginPage()),
    GetPage(name: Routes.Settings, page: () => SettingsPage()),
    GetPage(name: Routes.Index, page: () => IndexPage()),
    GetPage(name: Routes.StartWork, page: () => StartWorkPage()),
    GetPage(name: Routes.StartWorkNextOne, page: () => StartWorkNextOnePage()),
    GetPage(name: Routes.EndWork, page: () => EndWorkPage()),
    GetPage(name: Routes.EndWorkNextOne, page: () => EndWorkNextOnePage()),
    GetPage(name: Routes.TestLotStartWork, page: () => TestLotStartWorkPage()),
    GetPage(name:Routes.DataUpload, page: () => DataUploadPage()),
    GetPage(name: Routes.PassEndWork, page: () => PassEndWorkPage()),
    GetPage(name: Routes.PassEndWorkNextOne, page: () => PassEndWorkNextOnePage()),
    GetPage(name: Routes.DefectClearThing, page: () => DefectClearThingPage()),
    GetPage(name: Routes.EquipmentAskRepair, page: () => EquipmentAskRepairPage()),
    GetPage(name: Routes.EquipmentRepairList, page: () => EquipmentRepairListPage()),
    GetPage(name: Routes.EquipmentRepairDetails, page: () => EquipmentRepairDetailsPage()),
    GetPage(name: Routes.AddParts, page: () => AddPartsPage()),
    GetPage(name: Routes.AddMaterial, page: () => AddMaterialPage()),
    GetPage(name: Routes.AddMaterialInfo, page: () => AddMaterialInfoPage()),
    GetPage(name: Routes.QcTrackIn, page: () => QcTrackInPage()),
    GetPage(name: Routes.QcTrackOut, page: () => QcTrackOutPage()),
    GetPage(name: Routes.PeConfirm, page: () => PeConfirmPage()),
    GetPage(name: Routes.QaConfirm, page: () => QaConfirmPage()),
    GetPage(name: Routes.PQCFunction, page: () => PQCFunctionPage()),
    GetPage(name: Routes.BindPart, page: () => BindPartPage()),
    GetPage(name: Routes.EndWorkNextTwo, page: () => EndWorkNextTwoPage()),
    GetPage(name: Routes.EndWorkNextOneNormal, page: () => EndWorkNextOneNormalPage()),
    GetPage(name: Routes.StartWorkNextDB, page: () => StartWorkNextDBPage()),
    GetPage(name: Routes.EndWorkNextOneDefect, page: () => EndWorkNextOneDefectPage()),
    GetPage(name: Routes.ProductLib, page: () => ProductIntoLibWidget()),
    GetPage(name: Routes.HalfProductLib, page: () => HalfProductIntoLibWidget()),
  ];
}